//
//  GetCodeString.m
//  ChengHuiTong
//
//  Created by ypwl on 16/3/11.
//  Copyright © 2016年 张文权. All rights reserved.
//

#import "GetCodeString.h"
#import "RSA.h"
@implementation GetCodeString
+(NSString*)getCodeWithString:(NSString*)string{
    
    NSString *pubkey = @"-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCiX3rmkICa+P796iIJ2kADMpWS\nSHAx8BeJCLL48M/y7BSdNPhfsyPBoIQJZbTgYN6HDkfPFq47G9vNUikr9eOEgFBs\nD4D1SwFL8qzMYLBGW1fScJrDb9bvQs7kH/JqOGnPNfZxIFOPqyQrPa/hbNM2+eJh\nhbn222SYUZ4K+sufSwIDAQAB\n-----END PUBLIC KEY-----";
    
  return [RSA encryptString:string publicKey:pubkey];
    
};

@end
